package com.jiangjiang.eshop.purchase.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.purchase.domain.PurchaseOrderEntity;
import com.jiangjiang.eshop.purchase.dto.PurchaseOrderDTO;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface PurchaseOrderConvert {
    PurchaseOrderEntity convertDTO2Entity(PurchaseOrderDTO dto);

    PurchaseOrderDTO convertEntity2DTO(PurchaseOrderEntity entity);

    Page<PurchaseOrderDTO> convertPage2DTO(Page<PurchaseOrderEntity> selectPage);
}
